package ncit.npe.example;

public class BlackBox {

	public static Number doMagic(Number value) {
		if (value instanceof Integer) {
			if ((Integer)value < 10) {
				return null;
			}
		} else if (value instanceof Float) {
			if ((Float)value < 0.1f) {
				return null;
			}
		}
		return value;	
	}
	
}
